package net.jiupinshi.common;

/**
 * @Despription: 需要修改
 * @Author: penghui.guo
 * @Date: 2018/12/16 15:00
 */
public class PageResult<T> {

    private int pageSize = 10;

    private int pageNum = 1;

    private int pageCount;

    private int total;

    private T t;

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageCount() {
        return pageCount;
    }

    public void setPageCount(int pageCount) {
        this.pageCount = pageCount;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.pageCount = (total + pageSize -1) / pageSize;
        this.total = total;
    }

    public T getT() {
        return t;
    }

    public void setT(T t) {
        this.t = t;
    }
}
